import { makeAutoObservable } from 'mobx'
import User from './user';

// App test
class Counter {
    constructor() {
        // 將參數對象屬性設置爲 observable state
        // 將參數對象中的方法設置爲 action
        makeAutoObservable(this)
    }
    count = 0;
    setCount(number: number) {
        this.count = number
    }
    get count2() {
        return this.count * 2
    }
}


const stores = {
    Counter: new Counter(),
    User: new User(),
};
export default stores